package com.qijian.maindata.domain;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 生产班组对象 fm_team
 *
 * @author qijian
 * @date 2025-04-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("fm_team")
public class Team extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long teamId;

    @Excel(name = "班组编码")
    @ApiModelProperty(value = "班组编码")
    private String teamCode;

    @Excel(name = "班组名称")
    @ApiModelProperty(value = "班组名称")
    private String teamName;

    /** 班组长 */
    @Excel(name = "班组长")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "班组长")
    private Long chargeUserId;

    @Excel(name = "工厂")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工厂")
    private Long factoryId;

    @Excel(name = "班组类型")
    @ApiModelProperty(value = "班组类型")
    private String teamType;

    @Excel(name = "班次")
    @ApiModelProperty(value = "班次")
    private String teamShift;

    @Excel(name = "是否禁用")
    @ApiModelProperty(value = "是否禁用")
    private Boolean isDisabled;

    @TableField(exist = false)
    private List<TeamMember> teamMemberList;

}
